package com.wysql.common.model.emum;

public enum ReturnCode {
    SUCCESS("保存成功"),
    UPLOAD_SUCCESS("上传成功"),
    DELETE_SUCCESS("删除成功")
    ;

    private String name;

    ReturnCode(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public static boolean notIn(String name) {
        for (ReturnCode e : ReturnCode.values()) {
            if (name.equals(e.name)) {
                return false;
            }
        }
        return true;
    }


}
